package cn.example.zjgsu.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.lang.Nullable;

import java.io.Serializable;

public class Comment implements Serializable {
    @Nullable
    private Integer id;

    private String content;

    private String time;

    private Integer praisenumber;


    private String pictures;

    @JsonIgnore
    private String userid;

    @JsonIgnore
    private Integer shopid;

    @JsonIgnore
    private Integer foodrecordid;

    private static final long serialVersionUID = 1L;

    public Integer getId() { return id; }

    public void setId(Integer id) {     this.id = id; }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time == null ? null : time.trim();
    }

    public Integer getPraisenumber() {
        return praisenumber;
    }

    public void setPraisenumber(Integer praisenumber) {
        this.praisenumber = praisenumber;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures == null ? null : pictures.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public Integer getShopid() {
        return shopid;
    }

    public void setShopid(Integer shopid) {
        this.shopid = shopid;
    }

    public Integer getFoodrecordid() {
        return foodrecordid;
    }

    public void setFoodrecordid(Integer foodrecordid) {
        this.foodrecordid = foodrecordid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", time=").append(time);
        sb.append(", praisenumber=").append(praisenumber);
        sb.append(", pictures=").append(pictures);
        sb.append(", userid=").append(userid);
        sb.append(", shopid=").append(shopid);
        sb.append(", foodrecordid=").append(foodrecordid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}